express.js TDD
1. mochahttp://mochajs.org 테스트 수트 : 테스트 환경을 모카에서는 describe()로 구현 테스트 케이스 : 실제 테스트 it() 으로 구현 //{filename}.spec.js : 테스트 코드 const assert = require('assert') describe('.js모듈의 함수', () => { it ('문자열을 대문자로 변환', () => { const result = {메소드}(value) assert.equal(result, 'ok') }) }) 2. shouldhttps://github.com/tj/should.js 1.mocha 에 비해 가독성이 좋다 describe('.js모듈의 함수', () => { it ('문자열을 대문자로 변환', () => { // ..
공부합시다/express
2019. 12. 31. 11:06
- Total
- Today
- Yesterday
TAG
- VIM-COMMAND
- addMonthWithoutOverflow
- django
- composer-install
- addMonth
- composite-primarykey
- 자바스크립트
- session+token authorize
- graphql-php
- eloquant
- MySQL
- php-laravel
- Laravel
- laravel-test
- php
- 둘이상인증한번에사용하기
- 테스트_다중트랜잭션
- vim
- 메일
- 정규식
- 라라벨
- graphql
- redis
- exception-test
- composer-self-update
- php-composer
- 나는욕심쟁이
- 정의
- POP3
- Python
공지사항